<template>
  <div class="page-home">
    <!-- 焦点部分 -->
    <div class="home-entry">
      <div class="container">
        <!-- 左侧分类 -->
        <HomeCategory />
        <!-- banner轮播图 -->
        <HomeBanner />
      </div>
    </div>
    <!-- 楼层 - 新鲜好物 -->
    <HomeNew />
    <!-- 楼层 - 人气推荐 -->
    <suspense>
      <template #default>
        <HomeHot />
      </template>
      <template #fallback>
        <h1>异步组件加载中...</h1>
      </template>
    </suspense>
  </div>
</template>

<script setup lang="ts">
import HomeCategory from './components/home-category.vue'
import HomeBanner from './components/home-banner.vue'
// import HomeNew from './components/home-new.vue'
// import HomeHot from './components/home-hot.vue'
import { defineAsyncComponent } from 'vue'
const HomeNew = defineAsyncComponent(() => import('./components/home-new.vue'))
const HomeHot = defineAsyncComponent(() => import('./components/home-hot.vue'))

</script>

<style scoped lang="scss">

</style>
